<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 

<html xmlns="http://www.w3.org/1999/xhtml" 
	  xmlns:ui="http://java.sun.com/jsf/facelets"
	  xmlns:f="http://java.sun.com/jsf/core"
	  xmlns:h="http://java.sun.com/jsf/html">
	<head>
		<title>
		</title>	
	</head>
	<body>
		<ui:composition template="/Template/template01.xhtml">		
			<ui:define name="body">
			<link href="css/global.css" rel="stylesheet" type="text/css"/> 
			 <style>
			  	.lbl { cursor:pointer; text-decoration: underline; font-family: sans-serif; font-size: 11px; color: #021f91; }
			  </style>
			   <script type="text/javascript">
				  function clickBoton(){ 
				  		$("body").css("cursor", "progress");
				  }
			  </script>
			
				<h:form id="detailForm" >
				<h:inputHidden id="method"></h:inputHidden>		
				<h:inputHidden value="#{user.idRole}" id="cborol" />
				<h:outputScript name="js/jquery.fileupload-fp.js" />
				<h:outputScript name="js/jquery.fileupload-ui.js" />
				<h:outputScript name="js/jquery.fileupload.js" />
  <table width="95%" border="0" cellpadding="0" cellspacing="0" class="TablaBody1">
    <tr>
      <td colspan="2" align="right" class="CelTop">
      <h:graphicImage library="images" name="transp.gif" width="1" height="1"/>
      </td>
      <td width="6%" rowspan="3" align="right" valign="middle">&nbsp;</td>
    </tr>
    <tr>
      <td width="3%" height="10" align="right">
      <h:graphicImage library="images" name="flechanaranja.gif" width="11" height="13"/>
      </td>
     
	      <td width="91%">
		      <span class="TextoTitulosBlack">
		      	#{message.menuAdministracion}:
		      </span> 
		      <span class="TextoTitulos">
		      	#{message.solicitud}
		      </span>
	      </td>      
      
    </tr>
    <tr>
      <td height="19" align="right" class="CelUnder">&nbsp;</td>
      <td class="TextoTitulos">&nbsp;</td>
    </tr>
  </table>
  <table width="101%" border="0" cellpadding="0" cellspacing="0" class="TablaBody1">
    <tr>
      <td width="25" class="celBodyLeft">&nbsp;</td>
      <td width="771">
      <table width="85%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td height="18" valign="bottom" class="TextoTitulo2">
            	Crear Solicitud
            </td>
          </tr>
      </table>
          <table width="85%" border="0" cellpadding="0" cellspacing="0" class="fondo-blanco">
            <tr align="center" >
            	
	              <td valign="bottom" nowrap="nowrap" class="TabOn">
		              <span class="FontTabOn">
		              	#{message.cfg_InformationInformacion}
		              </span>
	              </td>
	              <td width="4" align="right" nowrap="nowrap" class="TitulosTablas">
	              <h:graphicImage library="images" name="transp.gif" width="1" height="1"/><h:graphicImage library="images" name="transp.gif" width="1" height="1"/></td>
	              <td width="140" align="center" valign="bottom" nowrap="nowrap">
	              	
	              </td>
	              <td align="right" nowrap="nowrap" class="">&#160;</td>              	              
	              <td width="83" align="right" nowrap="nowrap">
	              	<span class="paginacion">
						<h:commandLink id="abcdef" actionListener="#{solicitud.crearRequerimiento}" action="#{solicitud.processAction}" value="#{message.irAlListado}"/>
	              	</span>
	              </td>              
             
            </tr>
          </table>
        <table width="85%" border="0" cellpadding="0" cellspacing="0" class="fondo-blanco" dwcopytype="CopyTableCell">
            <tr align="left" >
              <td height="6" colspan="10" class="FondoCelAzul"><h:graphicImage library="images" name="transp.gif" width="1" height="1"/></td>
            </tr>
            <tr align="left" >
              <td height="1" colspan="10"><h:graphicImage library="images" name="transp.gif" width="1" height="1"/></td>
            </tr>
        </table>
        <table width="85%" border="1" cellpadding="5" cellspacing="1" bordercolor="#CCCCCC" class="">
            <tr align="center" >
              <td align="center" nowrap="nowrap" bgcolor="#FFFFFF">
              <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" class="TablaTabs">
           
                 
                  
                  
                  
                  <tr valign="middle" align="left">
                    <td height="22" class="TextTabBody">
	                    	Tipo de solicitud:&#160;&#160;
                    </td>
                    <td class="TextoCuerpo1">
                    
                    	<h:selectOneMenu id="cboTipoSol" value="#{solicitud.vcTypesol}" styleClass="combo1">
		                    			<f:selectItem itemValue="0" itemLabel="Seleccione"/>
										<f:selectItem id="radioSol1x" itemLabel="SAI" itemValue="2" />
										<f:selectItem id="radioSol2x" itemLabel="OS" itemValue="1" />
						</h:selectOneMenu> 
                    </td>
                    <td align="left"><span style="color: red;">&#160;&#160;*</span></td>
                  </tr> 
                  
                  <tr valign="middle" align="left">
                    <td height="22" class="TextTabBody">
                    	#{message.numero}:&#160;&#160;
                    </td>
                    <td class="TextoCuerpo1">
								<h:inputText id="name" value="#{solicitud.vcNumbersol}" styleClass="Texbox3" />           	
                    </td>
                     <td align="left"><span style="color: red;">&#160;&#160;*</span></td>
                  </tr>
                  
                  <tr valign="middle" align="left">
                    <td width="37%" height="22" class="TextTabBody">
                    	Descripcion:&#160;&#160;
                    </td>
                    <td width="0%" class="TextoCuerpo1">
                    	<h:inputText id="us" value="#{solicitud.vcDescriptionsol}" styleClass="Texbox3"/>
                    </td>
                     <td width="100%" align="left"><span style="color: red;">&#160;&#160;*</span></td>
                  </tr>     
                   
                  
                     <tr valign="middle" align="left">
                    <td height="22" class="TextTabBody">
	                    	#{message.recurso}:&#160;&#160;
                    </td>
                    <td class="TextoCuerpo1">
		                    <h:selectOneMenu id="radio" value="#{solicitud.idIdusersol}" styleClass="combo1">
									<f:selectItem itemValue="0" itemLabel="Seleccione"/>
									<f:selectItems value="#{solicitud.listUserSol}" var="user" itemValue="#{user.inIduser}" itemLabel="#{user.vcName}"/>			
							</h:selectOneMenu>
                    </td>
                     <td align="left" ><span style="color: red;">&#160;&#160;*</span></td>
                  </tr>
                  
                  <form enctype="multipart/form-data">
                   <tr valign="middle" align="left">
                    <td height="22" class="TextTabBody">
	                    	Documento:&#160;&#160;
                    </td>
                    <td class="TextoCuerpo1">
		                    <input id="fileupload" type="file" name="files" class="botonmediano" style="color: #464646 !important; font-size: 12px !important;"/>
                    </td>
                     <td align="left" ><span style="color: red;">&#160;&#160;*</span></td>
                  </tr>
                  </form>
                  
                  
                   <tr valign="middle" align="left">
                   <td align="left" class="TextTabBody" style="color: red !important; text-align: left !important;">(*) Campos obligatorios</td>
                   <td colspan="2">
                   			<h:commandButton actionListener="#{solicitud.crearSol}"  action="#{solicitud.processAction}" value="Grabar" styleClass="botonmediano" onclick="clickBoton();"/>
                   			<h:commandButton actionListener="#{solicitud.retornarSol}" action="#{solicitud.processAction}" value="Cancelar" styleClass="botonmediano"/>
               		</td>
              </tr>
              </table>
              </td>
            </tr>
        </table>
        <p>&nbsp;</p></td>
    </tr>
  </table>
  <br/>
  <br/>	
  	
				<h:inputHidden id="DivFor"></h:inputHidden>
				</h:form>
			</ui:define>
		</ui:composition>
	</body>	
</html>